#include <iostream>
#include <string>
#include <vector>
using namespace std;

std::vector<string> split(const std::string & s){
	vector<string> result;
	string str;
	for (auto i=0; i<s.length();i++){
		if (s[i]==' '){
            if (!str.empty()) {
                result.push_back(str);
                str.clear();
            }
        } else {
            str +=s[i];
        }
	}
	if (!str.empty()) result.push_back(str);
	return result;
}

int main() 
{ 
	//TODO
	string line;
	getline(cin, line);
    vector<string> result=split(line);
	for (auto & str:result){
		cout<<'"'<<str<<'"'<<endl;
	}
	
	return 0; 
}
